package com.dykj.fireFighting.server.socialUnit.firemanger.service.impl;

import com.dykj.fireFighting.api.socialUnit.firemanger.entity.HazardSourcesDevice;
import com.dykj.fireFighting.api.socialUnit.firemanger.service.IHazardSourcesDeviceService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.firemanger.mapper.HazardSourcesDeviceMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;
import java.util.Map;

/**
 * 危险源设备中间表
 *
 * @Author aixiaolan
 * @Date  2021-07-06 08:42:43
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class HazardSourcesDeviceServiceImpl extends BaseServiceImpl<HazardSourcesDeviceMapper, HazardSourcesDevice> implements IHazardSourcesDeviceService {
    @Override
   public List<String> getByHazardSourcesId( String hazardSourcesId,  Integer type){
        return baseMapper.getByHazardSourcesId(hazardSourcesId,type);
    }
    @Override
    public int delByHazardSourcesId(String hazardSourcesId){
        return baseMapper.delByHazardSourcesId(hazardSourcesId);
    }
}
